@section('content')
<div class="am-cf am-padding">
   <div class="am-fl am-cf">
      <a href="{{URL::route('user')}}"><strong class="am-text-primary am-text-lg">用户列表</strong></a> / <small>{{$user->name}}</small>
   </div>
</div>
<div class="am-g">
        	<div class="am-u-md-12">
        		<div class="am-panel am-panel-default">
        			<div class="am-panel-hd">用户信息</div>
        			<div class="am-panel-bd">
        				<span>名称:{{$user->name}}</span><br>
        				<span>Email:{{$user->email}}</span><br>
        				<span>手机:{{$user->mobile}}</span><br>
        				<span>激活:{{$user->active ? '是' : '否'}}</span><br>
        				<span>创建时间:{{$user->created_at}}</span><br>
        			</div>
        		</div>
        	</div>
        	
        	
        	
        	<div class="am-u-md-12 m-cart-table-box">
        		<div class="am-panel am-panel-default">
        			<div class="am-panel-hd">地址信息</div>
        			<div class="am-panel-bd">
        				<table class="am-table m-cart-table">
						    <thead>
						        <tr>
						            <th>名称</th>
						            <th>手机</th>
						            <th>右边</th>
									<th>地址</th>
									<th>默认</th>
						        </tr>
						    </thead>
						    <tbody>
								@foreach($user->addresses as $address)
						        <tr>
						            <td>{{$address->name}}</td>
						            <td>{{$address->mobile}}</td>
						            <td>{{$address->zipcode}}</td>
						            <td>
						            	{{$address->province}}{{$address->city}}{{$address->district}}{{$address->street}}
						            </td>
						            <td>{{$address->default ? '是' : '否'}}</td>
						        </tr>
								@endforeach
						    </tbody>
						</table>
        			</div>
        		</div>
				
			</div>
    	</div>
@stop

@section('script')

<script type="text/javascript">
$(function () {
	
});
</script>
@stop
